package com.yimils.core.goods.serivce;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yimils.core.goods.dto.GoodsAddReq;
import com.yimils.core.goods.dto.GoodsQueryReq;
import com.yimils.core.goods.dto.GoodsUpdateReq;
import com.yimils.core.goods.entity.GoodsEntity;
import com.yimils.core.goods.vo.GoodsRes;

import java.util.List;

public interface GoodsService extends IService<GoodsEntity> {
    Boolean saveGoods(GoodsAddReq goodsAddReq);

    Boolean updateGoods(GoodsUpdateReq goodsUpdateReq);

    Boolean deleteGoods(List<Long> goodsIds);

    List<GoodsRes> listGoods(GoodsQueryReq goodsQueryReq);

    Boolean audit(Long goodsId, String auditState);

    Boolean putaway(Long goodsId, String putawayState);
}
